<?xml version="1.0" encoding="UTF-8"?>
<!-- ====================================================================== 
     10/08/2012 11:59:23                                                        

     aSergioMVC    
     Libreria para el modelo-vista-control
                   
     99GU5493                                                                
     ====================================================================== -->
<project name="aSergioMVC" default="generar-jar" basedir=".">
	<description>
            Libreria para el modelo-vista-control
    </description>

	<property name="build" location="${basedir}/build" />
	<property name="src.dir" location="${basedir}/src" />
	<property name="android" location="${basedir}/lib" />
	
	<property name="jar.name" value="sergionadal-mvc.jar"/>

	<target name="clean">
		<echo>LIMPIA LAS CLASES AUTOGENERADAS</echo>
		<delete includeemptydirs="true">
			<fileset dir="${build}" includes="*/**" />
		</delete>
		<delete>
		    <fileset dir="${basedir}" includes="${jar.name}"/>
		</delete>
	</target>

	<target name="compile" depends="clean" description="Libreria para el modelo-vista-control">
		<echo>COMPILA LAS CLASES</echo>
		<javac srcdir="${src.dir}" destdir="${build}" debug="on" encoding="iso-8859-1">
			<classpath>
				<fileset dir="${android}">
					<include name="**/*.jar" />
				</fileset>
			</classpath>
		</javac>

	</target>

	<target name="generar-jar" depends="compile">
		<echo>EMPAQUETA EL JAR</echo>
		<jar destfile="${basedir}" jarfile="${jar.name}" basedir="${build}">
			<manifest>
				<attribute name="Class-Path" value="android.jar" />
			</manifest>
		</jar>
	</target>


</project>

